package com.gz.im.backend.service.impl;

import com.gz.im.backend.mapper.entity.DialogNodeCondition;
import com.gz.im.backend.mapper.ext.DialogNodeConditionMapperExt;
import com.gz.im.backend.mapper.ext.DialogNodeMapperExt;
import com.gz.im.backend.service.DialogNodeService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author GuoZhong
 * @description
 * @date 2023/3/29 9:54
 */
@Service
@RequiredArgsConstructor
public class DialogNodeServiceImpl implements DialogNodeService {
	private final DialogNodeConditionMapperExt dlgNodeConditionMapperExt;

	private final DialogNodeMapperExt dialogNodeMapperExt;
	@Override
	public List<DialogNodeCondition> getNodeConditionByNodeId(Long node) {

		return dlgNodeConditionMapperExt.getNodeConditionByNodeId(node);
	}

	@Override
	public String getNodeContent(Long toNodeId) {
		return dialogNodeMapperExt.getNodeContent(toNodeId);
	}

}
